//
//  TableViewCell.m
//  11212团购
//
//  Created by student on 16/3/7.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "TableViewCell.h"

@implementation TableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setTg:(TgModel *)tg
{
        self.iconImageView.image=[UIImage imageNamed:tg.icon];
        self.titleLabel.text=tg.title;
        self.priceLabel.text=[NSString stringWithFormat:@"%@元",tg.price];
        self.buyCountLabel.text=[NSString stringWithFormat:@"已有%@人购买",tg.buyCount];
}

@end
